package com.codrim.cs.data.server.rpc.report;

import com.codrim.cs.data.rpc.dto.param.StatisticDataDTO;
import com.codrim.cs.data.server.dao.entity.StatCsAdvAffDO;

/**
 * @author Liang.Zhuge on 14/08/2017.
 */
public class StatCsAdvAffHelper extends AbstractStatDataHelper<StatCsAdvAffDO> {

    @Override
    GroupKey[] groupKeys() {
        return new GroupKey[] {GroupKey.AdvertiserId, GroupKey.AffiliateId, GroupKey.Symbol,
            GroupKey.AdvAdvertiserManangerId, GroupKey.AffAdvertiserManagerId};
    }

    @Override
    protected StatCsAdvAffDO initKeyFields(int sdate, StatisticDataDTO dto) {
        return new StatCsAdvAffDO(sdate, dto);
    }

}
